package main.java.com.uycode.defaultmethods;

import com.sun.org.apache.bcel.internal.generic.INSTANCEOF;


public class Test {

    public static void main(String[] args) {
        Formula formula = new Formula() {
            @Override
            public double calculate (int a) {
                return sqrt(a * 100);
            }
        };

        System.out.println(formula.calculate(100));
        System.out.println(formula.sqrt(16));


        Convert<String, Integer> convert = (from) -> Integer.valueOf(from);
        Integer converted = convert.convert("123");
        System.out.println(converted);
        System.out.println(new INSTANCEOF(converted));
    }
}
